package com.mengdie.shuidi.ui.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.mengdie.shuidi.R;
import com.mengdie.shuidi.model.ModelCity;

import java.util.List;

/**
 * 作者：HQY on 17/8/8 14:51
 * 邮箱：hqy_xz@126.com
 */

public class IpCityAdapter extends BaseQuickAdapter<ModelCity, BaseViewHolder> {
    public IpCityAdapter(List<ModelCity> data) {
        super(R.layout.item_ip_city, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ModelCity item) {
        helper.setText(R.id.tv_city_name, item.getCity());
    }
}
